$OpenBSD: patch-lib_Timer_cc,v 1.2 2017/04/25 15:00:55 espie Exp $

64bit time_t fix.

--- lib/Timer.cc.orig	Fri Mar 18 10:07:09 2005
+++ lib/Timer.cc	Tue Apr 25 16:43:09 2017
@@ -28,8 +28,7 @@
 
 
 bt::timeval::timeval(const ::timeval &t)
-  : tv_sec(t.tv_sec), tv_usec(t.tv_usec)
-{ }
+{ tv_sec = t.tv_sec; tv_usec = t.tv_usec; }
 
 
 bool bt::timeval::operator<(const timeval &tv)
@@ -56,10 +55,12 @@ bt::timeval &bt::timeval::operator=(const ::timeval &t
 { return (*this = timeval(t)); }
 
 
+#if 0
 bt::timeval::operator ::timeval() const {
   ::timeval ret = { tv_sec, tv_usec };
   return ret;
 }
+#endif
 
 
 bt::timeval bt::normalizeTimeval(const timeval &tm) {
@@ -105,7 +106,7 @@ void bt::Timer::adjustStartTime(const timeval &offset)
 { _start += offset; }
 
 
-void bt::Timer::setTimeout(long t) {
+void bt::Timer::setTimeout(time_t t) {
   _timeout.tv_sec = t / 1000;
   _timeout.tv_usec = t % 1000;
   _timeout.tv_usec *= 1000;
